<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'comment-form',
	'enableAjaxValidation'=>false,
)); ?>
        <?php if (!Yii::app()->user->isGuest) { ?>
       <?php echo $form->errorSummary($model); ?>
       
       <?php echo $form->labelEx($model,'content'); //them fck ?>        
        <?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array( 'model'=>$model,
        'attribute'=>'content',
          # Additional Parameter (Check http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html)
          "config" => array(
              "height"=>"400px",
              "width"=>"100%",
              "toolbar"=>"Full",
              ),
         
                "fckeditor"=>Yii::app()->basePath."/../fckeditor/fckeditor.php",
                                                # Path to fckeditor.php
                "fckBasePath"=>Yii::app()->baseUrl."/fckeditor/",
                                                # Relative Path to the Editor (from Web-Root)
                "config" => array("EditorAreaCSS"=>Yii::app()->baseUrl.'/css/index.css',),
                                    # Additional Parameters
          ) ); ?>
        <?php echo $form->error($model,'content'); // end fck?>
            <?php
                echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
                ?>
            <div class="row">
        
            <?php
                    } else {
                        echo 'Bạn đăng nhập vào hệ thống thì mới comment được ^^';
                            }
                ?>
            </div>

<?php $this->endWidget(); ?>

</div><!-- form -->
